<?php /* Smarty version 2.6.16, created on 2012-10-12 03:31:26
         compiled from coach_leftpanel.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'coach_leftpanel.tpl', 172, false),array('modifier', 'in_array', 'coach_leftpanel.tpl', 200, false),)), $this); ?>
<?php echo '
<script type="text/javascript" language="javascript">

jQuery(document).ready(function(){
jQuery(\'#username\').focus(function(){ if( jQuery(this).val()== \'Keyword\' ) jQuery(this).val(\'\');});
jQuery(\'#username\').blur(function(){ if( jQuery(this).val()== \'\' ) jQuery(this).val(\'Keyword\');});
jQuery.fn.autosugguest({  
           className: \'ausu-suggest\',
          methodType: \'POST\',
            minChars: 2,
              rtnIDs: true,
            dataFile: \'autopopulate.php?action=populateCity\'
    });
/* right panel filter more/less links */
	var filterThreshold = 5;
	jQuery(\'.listing\').each(function(i){
	if(jQuery(this).find(\'a.selected\').length == 0){
		jQuery(this).find(\'li:gt(\'+(filterThreshold-1)+\')\').hide();
		if(jQuery(this).find(\'li\').length > filterThreshold)
			jQuery(this).after(\'<li class="more"><a href="#"><em><span>+ more</span></em></a></li><li style="clear:both; width:100%"></li>\');
		else
			jQuery(this).after(\'\');
	}
	});

	jQuery(\'.more\').each(function(i){
		jQuery(this).toggle(function(){
		jQuery(this).prev().find(\'li:gt(\'+(filterThreshold-1)+\')\').slideDown(\'fast\');
		jQuery(this).html(\'<li class="more"><a href="#"><em><span>- less</span></em></a></li><li style="clear:both; width:100%"></li>\');
		},function(){
		jQuery(this).prev().find(\'li:gt(\'+(filterThreshold-1)+\')\').slideUp(\'fast\');
		jQuery(this).html(\'<li class="more"><a href="#"><em><span>+ more</span></em></a></li><li style="clear:both; width:100%"></li>\');
		});
	});
	jQuery(\'.refine\').click(function(){
	
		var val = jQuery(this).attr(\'typeId\');
		var type = jQuery(this).attr(\'stype\');
		
		if(type ==\'L\')
		{
		    if(jQuery(\'#ladder_\'+val).attr(\'checked\'))
				jQuery(\'#ladder_\'+val).removeAttr(\'checked\');
			else
				jQuery(\'#ladder_\'+val).attr(\'checked\',\'true\');
		}
		else if(type ==\'R\')
		{
			if(jQuery(\'#race_\'+val).attr(\'checked\'))
				jQuery(\'#race_\'+val).removeAttr(\'checked\');
			else
			jQuery(\'#race_\'+val).attr(\'checked\',\'true\');
		}	
		else if(type ==\'S\')
		{
			if(jQuery(\'#server_\'+val).attr(\'checked\'))
				jQuery(\'#server_\'+val).removeAttr(\'checked\');
			else
			jQuery(\'#server_\'+val).attr(\'checked\',\'true\');
		}
		else if(type ==\'X\')
		{
			if(jQuery(\'#region_\'+val).attr(\'checked\'))
				jQuery(\'#region_\'+val).removeAttr(\'checked\');
			else
			jQuery(\'#region_\'+val).attr(\'checked\',\'true\');
		}
		else if(type ==\'Y\')
		{
			if(jQuery(\'#rating_\'+val).attr(\'checked\'))
			jQuery(\'#rating_\'+val).removeAttr(\'checked\');
			else
			jQuery(\'#rating_\'+val).attr(\'checked\',\'true\');
		}		
		else if(type ==\'A\')
		{
			if(jQuery(\'#avail_\'+val).attr(\'checked\'))
			jQuery(\'#avail_\'+val).removeAttr(\'checked\');
			else
			 jQuery(\'#avail_\'+val).attr(\'checked\',\'true\');
		}	 
		

		else
		{
			if(jQuery(\'#language_\'+val).attr(\'checked\'))
			jQuery(\'#language_\'+val).removeAttr(\'checked\');
			else
			jQuery(\'#language_\'+val).attr(\'checked\',\'true\');
			
		}
		frmRefine_POST();
	});
  });	
</script>
<link rel="stylesheet" href="slider/stylesheets/jslider.css" type="text/css">
<link rel="stylesheet" href="slider/stylesheets/jslider.plastic.css" type="text/css">
<!--<script type="text/javascript" src="slider/javascripts/jquery-1.4.2.js"></script>-->
<script type="text/javascript" src="slider/javascripts/jquery.dependClass.js"></script>
<script type="text/javascript" src="slider/javascripts/jquery.slider-min.js"></script>
<script type=\'text/javascript\'>
function frmRefine_POST()
{
  var data = jQuery(document.frmRefine).serialize();
  jQuery(\'#loading\').html(\'<p><img src="images/bar-loader.gif" alt="Loading..." /></p>\');
  jQuery.ajax({
	type: "GET",
	url: \'findcoach2.php\',
	data: data+\'&game_id=\'+ jQuery(\'#game_id option:selected\').val(),			
	dataType: \'html\',
	success: function(data)
	{				
	   jQuery(\'.container-inner\').html(data+"<div class=\'clear\'></div>");
	   //alert(data);
	   jQuery(\'#loading\').html(\'\');
	}
});
}
function CreateCountry()
{
    var cityid = jQuery(\'#cityid\').val();
	var city = jQuery(\'#city\').val();
	if(cityid !=\'\' && city!=\'\')
	{
		 document.getElementById(\'availability_city\').value=cityid;
		 goto();
	}
    else
	{
	     document.getElementById(\'availability_city\').value=\'\';
		 goto();
	}
}
function subForm(a){
//alert(a);
	document.getElementById(\'listfor\').value=\'sorting\';
	document.getElementById(\'sortingby\').value=a;
	goto();
}
function avail_submit(c){
	document.getElementById(\'availability_country\').value=c;
	goto();
}
function searchUser()
{
   var username = jQuery(\'#username\').val();
   if(username == \'\' || username ==\'Keyword\')
    jQuery(\'#username\').css(\'border\',\'1px solid red\');
   else
   {
     document.getElementById(\'unm\').value=username;
	 goto();
   }	 	
}
function resetSearch()
{
     document.getElementById(\'unm\').value=\'\';
	 goto();
   	 	
}
function goto(){
	frmRefine_POST();
}
</script>
'; ?>

<div class="left-panel">
<div class="left-search">
       <form action="findcoach.php" method="post" id="leftsearchfindcoach">
       <fieldset>
	  
       <select name="game_id" id="game_id">
			<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['GameArr'],'selected' => $this->_tpl_vars['game_id']), $this);?>

	   </select>
	    
       <!--<input name="" value="Go" class="go" type="submit" />-->
	   <a class="button" href="#" style="float: right;min-width: 30px;padding: 0 3px; margin: 0;" onclick="document.getElementById('leftsearchfindcoach').submit();">Go</a>
	   <div style="background:#ccc; width:250px; float:left; display:block; top:40px; left:0px; height:37px; border:1px solid #ededed; padding:3px 0 0 5px; position:absolute;"><input name="username" class="text" type="text" id="username" <?php if ($this->_tpl_vars['username'] != ''): ?>value="<?php echo $this->_tpl_vars['username']; ?>
"<?php else: ?>value="Keyword"<?php endif; ?> onfocus="this.value=''"/>		
			  <input type="button" value="" onclick="searchUser()" /></div>

       </fieldset>
       </form>
 </div>	
   <div class="graphite demo-container">
	<ul class="accordion" id="accordion-1">
	<form action="findcoach.php" method="post" name="frmRefine">
	<input type="hidden" name="list_for" id="listfor" value="" />
	<input type="hidden" name="sorting_by" id="sortingby" value=""/>
	<input type="hidden" name="unm" id="unm" value="<?php echo $this->_tpl_vars['username']; ?>
"/>
	<!--input type="hidden" name="availability_country" id="availability_country" value="<?php echo $this->_tpl_vars['availability_country']; ?>
"/-->
	<input type="hidden" name="availability_city" id="availability_city" value="<?php echo $this->_tpl_vars['availability_city']; ?>
"/>
	<input type="hidden" name="action" value="send" />
	<?php if ($this->_tpl_vars['is_ladder'] == 'Y'): ?>
	 <?php if ($this->_tpl_vars['Numgame'] != '0'): ?>
	    <li><a href="#">Ladder</a>
        <ul>	
		 <div class="listing">
				 <?php unset($this->_sections['ladder']);
$this->_sections['ladder']['name'] = 'ladder';
$this->_sections['ladder']['loop'] = is_array($_loop=$this->_tpl_vars['ladderArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['ladder']['show'] = true;
$this->_sections['ladder']['max'] = $this->_sections['ladder']['loop'];
$this->_sections['ladder']['step'] = 1;
$this->_sections['ladder']['start'] = $this->_sections['ladder']['step'] > 0 ? 0 : $this->_sections['ladder']['loop']-1;
if ($this->_sections['ladder']['show']) {
    $this->_sections['ladder']['total'] = $this->_sections['ladder']['loop'];
    if ($this->_sections['ladder']['total'] == 0)
        $this->_sections['ladder']['show'] = false;
} else
    $this->_sections['ladder']['total'] = 0;
if ($this->_sections['ladder']['show']):

            for ($this->_sections['ladder']['index'] = $this->_sections['ladder']['start'], $this->_sections['ladder']['iteration'] = 1;
                 $this->_sections['ladder']['iteration'] <= $this->_sections['ladder']['total'];
                 $this->_sections['ladder']['index'] += $this->_sections['ladder']['step'], $this->_sections['ladder']['iteration']++):
$this->_sections['ladder']['rownum'] = $this->_sections['ladder']['iteration'];
$this->_sections['ladder']['index_prev'] = $this->_sections['ladder']['index'] - $this->_sections['ladder']['step'];
$this->_sections['ladder']['index_next'] = $this->_sections['ladder']['index'] + $this->_sections['ladder']['step'];
$this->_sections['ladder']['first']      = ($this->_sections['ladder']['iteration'] == 1);
$this->_sections['ladder']['last']       = ($this->_sections['ladder']['iteration'] == $this->_sections['ladder']['total']);
?>
				   	<li>
					<input type="checkbox" name="ladder_id[]" id='ladder_<?php echo $this->_tpl_vars['ladderArr'][$this->_sections['ladder']['index']]['ladder_id']; ?>
' value="<?php echo $this->_tpl_vars['ladderArr'][$this->_sections['ladder']['index']]['ladder_id']; ?>
" style="display:none;"
					<?php if (((is_array($_tmp=$this->_tpl_vars['ladderArr'][$this->_sections['ladder']['index']]['ladder_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['ladder_id']) : in_array($_tmp, $this->_tpl_vars['ladder_id']))): ?> checked="checked" <?php endif; ?>/>
					<a href="javascript:;" class="refine <?php if (((is_array($_tmp=$this->_tpl_vars['ladderArr'][$this->_sections['ladder']['index']]['ladder_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['ladder_id']) : in_array($_tmp, $this->_tpl_vars['ladder_id']))): ?> selected <?php endif; ?>" stype="L" typeId="<?php echo $this->_tpl_vars['ladderArr'][$this->_sections['ladder']['index']]['ladder_id']; ?>
"> 
					<?php echo $this->_tpl_vars['ladderArr'][$this->_sections['ladder']['index']]['ladder_name']; ?>
 (<?php echo $this->_tpl_vars['ladderArr'][$this->_sections['ladder']['index']]['cnt']; ?>
) </a> </li>
                 <?php endfor; endif; ?>
				 
		 </div>		 
		 </ul>
	   </li>	 
	 <?php endif; ?>	
	<?php endif; ?> 
	<?php if ($this->_tpl_vars['is_race'] == 'Y'): ?>
	 <?php if ($this->_tpl_vars['Numrace'] != '0'): ?>
	    <li><a href="#">Race</a>
        <ul>	
		 <div class="listing">
				 <?php unset($this->_sections['race']);
$this->_sections['race']['name'] = 'race';
$this->_sections['race']['loop'] = is_array($_loop=$this->_tpl_vars['raceArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['race']['show'] = true;
$this->_sections['race']['max'] = $this->_sections['race']['loop'];
$this->_sections['race']['step'] = 1;
$this->_sections['race']['start'] = $this->_sections['race']['step'] > 0 ? 0 : $this->_sections['race']['loop']-1;
if ($this->_sections['race']['show']) {
    $this->_sections['race']['total'] = $this->_sections['race']['loop'];
    if ($this->_sections['race']['total'] == 0)
        $this->_sections['race']['show'] = false;
} else
    $this->_sections['race']['total'] = 0;
if ($this->_sections['race']['show']):

            for ($this->_sections['race']['index'] = $this->_sections['race']['start'], $this->_sections['race']['iteration'] = 1;
                 $this->_sections['race']['iteration'] <= $this->_sections['race']['total'];
                 $this->_sections['race']['index'] += $this->_sections['race']['step'], $this->_sections['race']['iteration']++):
$this->_sections['race']['rownum'] = $this->_sections['race']['iteration'];
$this->_sections['race']['index_prev'] = $this->_sections['race']['index'] - $this->_sections['race']['step'];
$this->_sections['race']['index_next'] = $this->_sections['race']['index'] + $this->_sections['race']['step'];
$this->_sections['race']['first']      = ($this->_sections['race']['iteration'] == 1);
$this->_sections['race']['last']       = ($this->_sections['race']['iteration'] == $this->_sections['race']['total']);
?>
				   	<li>
					<input type="checkbox" name="race_id[]" id='race_<?php echo $this->_tpl_vars['raceArr'][$this->_sections['race']['index']]['race_id']; ?>
' value="<?php echo $this->_tpl_vars['raceArr'][$this->_sections['race']['index']]['race_id']; ?>
" style="display:none" 
					<?php if (((is_array($_tmp=$this->_tpl_vars['raceArr'][$this->_sections['race']['index']]['race_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['race_id']) : in_array($_tmp, $this->_tpl_vars['race_id']))): ?> checked="checked" <?php endif; ?>/>
					<a href="#" class="refine <?php if (((is_array($_tmp=$this->_tpl_vars['raceArr'][$this->_sections['race']['index']]['race_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['race_id']) : in_array($_tmp, $this->_tpl_vars['race_id']))): ?> selected <?php endif; ?>" stype="R" typeId="<?php echo $this->_tpl_vars['raceArr'][$this->_sections['race']['index']]['race_id']; ?>
"> 
					<?php echo $this->_tpl_vars['raceArr'][$this->_sections['race']['index']]['race_title']; ?>
 (<?php echo $this->_tpl_vars['raceArr'][$this->_sections['race']['index']]['cnt']; ?>
) </a> </li>
                 <?php endfor; endif; ?>
				 
		 </div>		 
		 </ul>
	   </li>	 
	 <?php endif; ?>	
	<?php endif; ?> 
	<?php if ($this->_tpl_vars['is_server'] == 'Y'): ?>
	 <?php if ($this->_tpl_vars['Numserver'] != '0'): ?>
	    <li><a href="#">Server</a>
        <ul>	
		 <div class="listing">
				 <?php unset($this->_sections['server']);
$this->_sections['server']['name'] = 'server';
$this->_sections['server']['loop'] = is_array($_loop=$this->_tpl_vars['serverArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['server']['show'] = true;
$this->_sections['server']['max'] = $this->_sections['server']['loop'];
$this->_sections['server']['step'] = 1;
$this->_sections['server']['start'] = $this->_sections['server']['step'] > 0 ? 0 : $this->_sections['server']['loop']-1;
if ($this->_sections['server']['show']) {
    $this->_sections['server']['total'] = $this->_sections['server']['loop'];
    if ($this->_sections['server']['total'] == 0)
        $this->_sections['server']['show'] = false;
} else
    $this->_sections['server']['total'] = 0;
if ($this->_sections['server']['show']):

            for ($this->_sections['server']['index'] = $this->_sections['server']['start'], $this->_sections['server']['iteration'] = 1;
                 $this->_sections['server']['iteration'] <= $this->_sections['server']['total'];
                 $this->_sections['server']['index'] += $this->_sections['server']['step'], $this->_sections['server']['iteration']++):
$this->_sections['server']['rownum'] = $this->_sections['server']['iteration'];
$this->_sections['server']['index_prev'] = $this->_sections['server']['index'] - $this->_sections['server']['step'];
$this->_sections['server']['index_next'] = $this->_sections['server']['index'] + $this->_sections['server']['step'];
$this->_sections['server']['first']      = ($this->_sections['server']['iteration'] == 1);
$this->_sections['server']['last']       = ($this->_sections['server']['iteration'] == $this->_sections['server']['total']);
?>
				   	<li>
					<input type="checkbox" name="server_id[]" id='server_<?php echo $this->_tpl_vars['serverArr'][$this->_sections['server']['index']]['server_id']; ?>
' value="<?php echo $this->_tpl_vars['serverArr'][$this->_sections['server']['index']]['server_id']; ?>
" style="display:none" 
					<?php if (((is_array($_tmp=$this->_tpl_vars['serverArr'][$this->_sections['server']['index']]['server_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['server_id']) : in_array($_tmp, $this->_tpl_vars['server_id']))): ?> checked="checked" <?php endif; ?>/>
					<a href="#" class="refine <?php if (((is_array($_tmp=$this->_tpl_vars['serverArr'][$this->_sections['server']['index']]['server_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['server_id']) : in_array($_tmp, $this->_tpl_vars['server_id']))): ?> selected <?php endif; ?>" stype="S" typeId="<?php echo $this->_tpl_vars['serverArr'][$this->_sections['server']['index']]['server_id']; ?>
"> 
					<?php echo $this->_tpl_vars['serverArr'][$this->_sections['server']['index']]['server_name']; ?>
 (<?php echo $this->_tpl_vars['serverArr'][$this->_sections['server']['index']]['cnt']; ?>
) </a> </li>
                 <?php endfor; endif; ?>
				 
		 </div>		 
		 </ul>
	   </li>	 
	 <?php endif; ?>	
	<?php endif; ?> 
	<?php if ($this->_tpl_vars['is_region'] == 'Y'): ?>
	 <?php if ($this->_tpl_vars['Numregion'] != '0'): ?>
	    <li><a href="#">Region</a>
        <ul>	
		 <div class="listing">
				 <?php unset($this->_sections['region']);
$this->_sections['region']['name'] = 'region';
$this->_sections['region']['loop'] = is_array($_loop=$this->_tpl_vars['regionArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['region']['show'] = true;
$this->_sections['region']['max'] = $this->_sections['region']['loop'];
$this->_sections['region']['step'] = 1;
$this->_sections['region']['start'] = $this->_sections['region']['step'] > 0 ? 0 : $this->_sections['region']['loop']-1;
if ($this->_sections['region']['show']) {
    $this->_sections['region']['total'] = $this->_sections['region']['loop'];
    if ($this->_sections['region']['total'] == 0)
        $this->_sections['region']['show'] = false;
} else
    $this->_sections['region']['total'] = 0;
if ($this->_sections['region']['show']):

            for ($this->_sections['region']['index'] = $this->_sections['region']['start'], $this->_sections['region']['iteration'] = 1;
                 $this->_sections['region']['iteration'] <= $this->_sections['region']['total'];
                 $this->_sections['region']['index'] += $this->_sections['region']['step'], $this->_sections['region']['iteration']++):
$this->_sections['region']['rownum'] = $this->_sections['region']['iteration'];
$this->_sections['region']['index_prev'] = $this->_sections['region']['index'] - $this->_sections['region']['step'];
$this->_sections['region']['index_next'] = $this->_sections['region']['index'] + $this->_sections['region']['step'];
$this->_sections['region']['first']      = ($this->_sections['region']['iteration'] == 1);
$this->_sections['region']['last']       = ($this->_sections['region']['iteration'] == $this->_sections['region']['total']);
?>
				   	<li>
					<input type="checkbox" name="region_id[]" id='region_<?php echo $this->_tpl_vars['regionArr'][$this->_sections['region']['index']]['region_id']; ?>
' value="<?php echo $this->_tpl_vars['regionArr'][$this->_sections['region']['index']]['region_id']; ?>
" style="display:none;"
					<?php if (((is_array($_tmp=$this->_tpl_vars['regionArr'][$this->_sections['region']['index']]['region_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['region_id']) : in_array($_tmp, $this->_tpl_vars['region_id']))): ?> checked="checked" <?php endif; ?>/>
					<a href="#" class="refine <?php if (((is_array($_tmp=$this->_tpl_vars['regionArr'][$this->_sections['region']['index']]['region_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['region_id']) : in_array($_tmp, $this->_tpl_vars['region_id']))): ?> selected <?php endif; ?>" stype="X" typeId="<?php echo $this->_tpl_vars['regionArr'][$this->_sections['region']['index']]['region_id']; ?>
"> 
					<?php echo $this->_tpl_vars['regionArr'][$this->_sections['region']['index']]['region_title']; ?>
 (<?php echo $this->_tpl_vars['regionArr'][$this->_sections['region']['index']]['cnt']; ?>
) </a> </li>
                 <?php endfor; endif; ?>
				 
		 </div>		 
		 </ul>
	   </li>	 
	 <?php endif; ?>	
	<?php endif; ?> 
	<?php if ($this->_tpl_vars['is_rating'] == 'Y'): ?>
	 <?php if ($this->_tpl_vars['Numrating'] != '0'): ?>
	    <li><a href="#">Rating</a>
        <ul>	
		 <div class="listing">
				 <?php unset($this->_sections['rating']);
$this->_sections['rating']['name'] = 'rating';
$this->_sections['rating']['loop'] = is_array($_loop=$this->_tpl_vars['ratingArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['rating']['show'] = true;
$this->_sections['rating']['max'] = $this->_sections['rating']['loop'];
$this->_sections['rating']['step'] = 1;
$this->_sections['rating']['start'] = $this->_sections['rating']['step'] > 0 ? 0 : $this->_sections['rating']['loop']-1;
if ($this->_sections['rating']['show']) {
    $this->_sections['rating']['total'] = $this->_sections['rating']['loop'];
    if ($this->_sections['rating']['total'] == 0)
        $this->_sections['rating']['show'] = false;
} else
    $this->_sections['rating']['total'] = 0;
if ($this->_sections['rating']['show']):

            for ($this->_sections['rating']['index'] = $this->_sections['rating']['start'], $this->_sections['rating']['iteration'] = 1;
                 $this->_sections['rating']['iteration'] <= $this->_sections['rating']['total'];
                 $this->_sections['rating']['index'] += $this->_sections['rating']['step'], $this->_sections['rating']['iteration']++):
$this->_sections['rating']['rownum'] = $this->_sections['rating']['iteration'];
$this->_sections['rating']['index_prev'] = $this->_sections['rating']['index'] - $this->_sections['rating']['step'];
$this->_sections['rating']['index_next'] = $this->_sections['rating']['index'] + $this->_sections['rating']['step'];
$this->_sections['rating']['first']      = ($this->_sections['rating']['iteration'] == 1);
$this->_sections['rating']['last']       = ($this->_sections['rating']['iteration'] == $this->_sections['rating']['total']);
?>
				   	<li>
					<input type="checkbox" name="rating_id[]" id='rating_<?php echo $this->_tpl_vars['ratingArr'][$this->_sections['rating']['index']]['rating_id']; ?>
' value="<?php echo $this->_tpl_vars['ratingArr'][$this->_sections['rating']['index']]['rating_id']; ?>
" style="display:none" 
					<?php if (((is_array($_tmp=$this->_tpl_vars['ratingArr'][$this->_sections['rating']['index']]['rating_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['rating_id']) : in_array($_tmp, $this->_tpl_vars['rating_id']))): ?> checked="checked" <?php endif; ?>/>
					<a href="#" class="refine <?php if (((is_array($_tmp=$this->_tpl_vars['ratingArr'][$this->_sections['rating']['index']]['rating_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['rating_id']) : in_array($_tmp, $this->_tpl_vars['rating_id']))): ?> selected <?php endif; ?>" stype="Y" typeId="<?php echo $this->_tpl_vars['ratingArr'][$this->_sections['rating']['index']]['rating_id']; ?>
"> 
					<?php echo $this->_tpl_vars['ratingArr'][$this->_sections['rating']['index']]['rating_title']; ?>
 (<?php echo $this->_tpl_vars['ratingArr'][$this->_sections['rating']['index']]['cnt']; ?>
) </a> </li>
                 <?php endfor; endif; ?>
				 
		 </div>		 
		 </ul>
	   </li>	 
	 <?php endif; ?>	
	<?php endif; ?> 
	<li><a href="#">Rate (Points)</a> 
           <ul>	
				  <li style="height:30px; padding:15px 5px 5px 5px;"> 
				   <span style="display: inline-block; width: 230px; padding: 0 5px; font-size:11px;">
				   <input id="Slider1" type="slider" name="price" value="<?php echo $this->_tpl_vars['price']; ?>
"/></span> 
                    <?php echo '
					 <script type="text/javascript" charset="utf-8">
					  jQuery("#Slider1").slider({ from: 0, to: 100, limits: false, step: 1,smooth: true, round: 0, dimension: \'\', skin: "plastic", callback: 
					  function( value ){ /* document.frmRefine.submit() */ frmRefine_POST(); } });
					</script>
					'; ?>

				 </li>	
		   </ul>
	</li>  
	<?php if ($this->_tpl_vars['Numlanguage'] != '0'): ?>	
	     <li><a href="#">Language</a>
            <ul>
			 <div class="listing">
                   
				  <?php unset($this->_sections['lang']);
$this->_sections['lang']['name'] = 'lang';
$this->_sections['lang']['loop'] = is_array($_loop=$this->_tpl_vars['languageArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['lang']['show'] = true;
$this->_sections['lang']['max'] = $this->_sections['lang']['loop'];
$this->_sections['lang']['step'] = 1;
$this->_sections['lang']['start'] = $this->_sections['lang']['step'] > 0 ? 0 : $this->_sections['lang']['loop']-1;
if ($this->_sections['lang']['show']) {
    $this->_sections['lang']['total'] = $this->_sections['lang']['loop'];
    if ($this->_sections['lang']['total'] == 0)
        $this->_sections['lang']['show'] = false;
} else
    $this->_sections['lang']['total'] = 0;
if ($this->_sections['lang']['show']):

            for ($this->_sections['lang']['index'] = $this->_sections['lang']['start'], $this->_sections['lang']['iteration'] = 1;
                 $this->_sections['lang']['iteration'] <= $this->_sections['lang']['total'];
                 $this->_sections['lang']['index'] += $this->_sections['lang']['step'], $this->_sections['lang']['iteration']++):
$this->_sections['lang']['rownum'] = $this->_sections['lang']['iteration'];
$this->_sections['lang']['index_prev'] = $this->_sections['lang']['index'] - $this->_sections['lang']['step'];
$this->_sections['lang']['index_next'] = $this->_sections['lang']['index'] + $this->_sections['lang']['step'];
$this->_sections['lang']['first']      = ($this->_sections['lang']['iteration'] == 1);
$this->_sections['lang']['last']       = ($this->_sections['lang']['iteration'] == $this->_sections['lang']['total']);
?>
				  	<li>
					<input type="checkbox" name="language_id[]" id="language_<?php echo $this->_tpl_vars['languageArr'][$this->_sections['lang']['index']]['language_id']; ?>
" value="<?php echo $this->_tpl_vars['languageArr'][$this->_sections['lang']['index']]['language_id']; ?>
" style="display:none;" 
					<?php if (((is_array($_tmp=$this->_tpl_vars['languageArr'][$this->_sections['lang']['index']]['language_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['language_id']) : in_array($_tmp, $this->_tpl_vars['language_id']))): ?> checked="checked" <?php endif; ?> />				
					<a href="#" class="refine <?php if (((is_array($_tmp=$this->_tpl_vars['languageArr'][$this->_sections['lang']['index']]['language_id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['language_id']) : in_array($_tmp, $this->_tpl_vars['language_id']))): ?> selected <?php endif; ?>" stype="Z" typeId="<?php echo $this->_tpl_vars['languageArr'][$this->_sections['lang']['index']]['language_id']; ?>
" >
					<?php echo $this->_tpl_vars['languageArr'][$this->_sections['lang']['index']]['language_name']; ?>
 (<?php echo $this->_tpl_vars['languageArr'][$this->_sections['lang']['index']]['cnt']; ?>
)</a>
					</li>
                  <?php endfor; endif; ?>
			  </div> 
			</ul>
		</li>	
	  <?php endif; ?>	
		 <li><a href="#">Availability</a>
           <ul>
		   <div class="listing">
			 
			  <li> <input type="checkbox" name="availability[]" id="avail_O" value="O" style="display:none" <?php if (((is_array($_tmp='O')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['availability']) : in_array($_tmp, $this->_tpl_vars['availability']))): ?> checked="checked" <?php endif; ?> />
			  <a href="#" class="refine <?php if (((is_array($_tmp='O')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['availability']) : in_array($_tmp, $this->_tpl_vars['availability']))): ?> selected <?php endif; ?>" stype="A" typeId="O"> Online(<?php echo $this->_tpl_vars['avail1Num']; ?>
)</a></li>
			  <li> <input type="checkbox" name="availability[]" id="avail_L" value="L" style="display:none" <?php if (((is_array($_tmp='L')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['availability']) : in_array($_tmp, $this->_tpl_vars['availability']))): ?> checked="checked" <?php endif; ?> />
			  <a href="#" class="refine <?php if (((is_array($_tmp='L')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['availability']) : in_array($_tmp, $this->_tpl_vars['availability']))): ?> selected <?php endif; ?>" stype="A" typeId="L" > Local meet-up(<?php echo $this->_tpl_vars['avail2Num']; ?>
)</a></li>
			  <li id="avail_coun" <?php if (((is_array($_tmp='L')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['availability']) : in_array($_tmp, $this->_tpl_vars['availability']))): ?> style="display:block;" <?php else: ?> style="display:none;" <?php endif; ?>>
			  &nbsp;&nbsp;&nbsp;
			  <div class="ausu-suggest">
			  <input type="text" name="city" id="city" value="<?php echo $this->_tpl_vars['city']; ?>
" autocomplete="off" />
			  <input name="cityid" id="cityid" value="<?php echo $this->_tpl_vars['availability_city']; ?>
" type="hidden"  autocomplete="off" />
			  </div>
			  <input type="button" value="Go" onclick="CreateCountry()" class="button" />
			  <br />
			  
			  </li>
			</div>  
		   </ul>
		</li>   
	   
	  <input type="hidden" name="record_per_page" id="record_per_page" value="<?php echo $this->_tpl_vars['record_per_page']; ?>
" style="visibility:hidden">
	  <input type="submit" style="visibility:hidden">
	 </form> 	
    </ul>
   </div>   
   </div>